#!/usr/bin/env python
# coding:utf8
''' 
use应用
author zhuxuezheng@gmail.com
'''

__revision__ = '0.1'

import web
import login
import registe

web.config.debug = False

urls = (
    '', login.Login,
    '/login.htm', login.Login,
    '/logout.htm', login.LoginOut,
    '/login.do', login.DoLogin,
    '/registe.htm', registe.Registe,
    '/registe.do', registe.DoRegiste)

def sub_hook():
    print 'user hook.........'

app = web.application(urls, locals(), True)
app.add_processor(web.loadhook(sub_hook))

if __name__ == "main":
    app.run()

